var UI_EVENT_CONST = require('./utils/constants.js');
var UI_CONST = require('./utils/icon-const.js');
var Engine = require('./engine');
var EventListener = require('./dom-event-hub');
var UDM = require('./data-model');
var Dialog = require('./dialog-model');
var Polyfill = require('./polyfill');
var Render = require('./render');
var CheckValidator = require('./validator');
var UFormatter = require('./utils/formatter.js');
var UMath = require('./utils/math.js');
var UResponsive = require('./utils/responsive.js');
var React = (function(){
	window.UI_EVENT_CONST = UI_EVENT_CONST;//初始化创建全局事件对象
	window.UI_CONST = UI_CONST;//初始化创建全局常量对象
	window.EventListener = EventListener;//初始化创建全局的事件监听器
	window.UDM = UDM;//初始化创建全局的UDM对象
	window.Dialog = Dialog;//初始化创建全局的DIALOG对象
	Polyfill();//初始化补充IE7/8的垫片功能
	window.UFormatter = UFormatter;//初始化数字格式化对象
	window.UMath = UMath;//初始化通用计算公式对象
	//UResponsive(324,'giraffe');//初始化通用计算公式对象
	window.ReactDOM = {
		render:Render
	};
	window.CheckValidator = CheckValidator;
	return Engine();
})();

module.exports = React;
